home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJEMU106.ARJ / E34.CC < prev    next >
C/C++ Source or Header  |  1991-04-22  |  577b  |  39 lines

  1. #include "emu.h"
  2.  
  3. void fclex()
  4. {
  5.   status_word &= ~(SW_B|SW_ES|SW_SF|SW_PE|SW_UE|SW_OE|SW_ZE|SW_DE|SW_IE);
  6. }
  7.  
  8. void finit()
  9. {
  10.   control_word = 0x037e;
  11.   status_word = 0;
  12.   top = 0;
  13.   for (int r=0; r<8; r++)
  14.   {
  15.     regs[r].sign = 0;
  16.     regs[r].tag = TW_E;
  17.     regs[r].exp = 0;
  18.     regs[r].sigh = 0;
  19.     regs[r].sigl = 0;
  20.   }
  21. }
  22.  
  23. FUNC emu_34_table[] = {
  24.   emu_bad, emu_bad, fclex, finit, emu_bad, emu_bad, emu_bad, emu_bad
  25. };
  26.  
  27. void emu_34()
  28. {
  29.   if (modrm > 0277)
  30.   {
  31.     (emu_34_table[modrm&7])();
  32.   }
  33.   else
  34.   {
  35.     //
  36.     emu_bad();
  37.   }
  38. }
  39.